package com.beiing.tianshuai.tianshuai.mine.entity;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by Administrator on 2018/4/10.
 * 用于请求用户收货地址
 */

public class OrderUserAddressDataBean {
    /**
     * code : 200
     * data : {"address":[{"id":"6","user_id":"6030","truename":"赵皓","telephone":"16619904160","province":"北京","city":"北京市","county":"昌平区","address":"北七家镇威尼斯花园2区2-3","ctime":"1523328187","def":"1","label":"公司"},{"id":"5","user_id":"6030","truename":"郑昌顺","telephone":"18101314027","province":"北京","city":"北京市","county":"昌平区","address":"北七家镇威尼斯花园2区2-3","ctime":"1523328136","def":"0","label":"公司"}]}
     */

    @SerializedName("code")
    private int code;
    @SerializedName("data")
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        @SerializedName("address")
        private List<AddressBean> address;

        public List<AddressBean> getAddress() {
            return address;
        }

        public void setAddress(List<AddressBean> address) {
            this.address = address;
        }

        public static class AddressBean {
            /**
             * id : 6
             * user_id : 6030
             * truename : 赵皓
             * telephone : 16619904160
             * province : 北京
             * city : 北京市
             * county : 昌平区
             * address : 北七家镇威尼斯花园2区2-3
             * ctime : 1523328187
             * def : 1
             * label : 公司
             */

            @SerializedName("id")
            private String id;
            @SerializedName("user_id")
            private String userId;
            @SerializedName("truename")
            private String truename;
            @SerializedName("telephone")
            private String telephone;
            @SerializedName("province")
            private String province;
            @SerializedName("city")
            private String city;
            @SerializedName("county")
            private String county;
            @SerializedName("address")
            private String address;
            @SerializedName("ctime")
            private String ctime;
            @SerializedName("def")
            private String def;
            @SerializedName("label")
            private String label;

            /**
             * 记录当前条目是否被选中
             * 防止试图复用的时候出现错乱的现象
             */
            private boolean isSelected;

            public boolean isSelected() {
                return isSelected;
            }

            public void setSelected(boolean selected) {
                isSelected = selected;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getUserId() {
                return userId;
            }

            public void setUserId(String userId) {
                this.userId = userId;
            }

            public String getTruename() {
                return truename;
            }

            public void setTruename(String truename) {
                this.truename = truename;
            }

            public String getTelephone() {
                return telephone;
            }

            public void setTelephone(String telephone) {
                this.telephone = telephone;
            }

            public String getProvince() {
                return province;
            }

            public void setProvince(String province) {
                this.province = province;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public String getCounty() {
                return county;
            }

            public void setCounty(String county) {
                this.county = county;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public String getCtime() {
                return ctime;
            }

            public void setCtime(String ctime) {
                this.ctime = ctime;
            }

            public String getDef() {
                return def;
            }

            public void setDef(String def) {
                this.def = def;
            }

            public String getLabel() {
                return label;
            }

            public void setLabel(String label) {
                this.label = label;
            }
        }
    }
}
